﻿<?php

$http = new swoole_http_server("0.0.0.0", 9501);
$http->set([
'enable_static_handler' => true,
'document_root' => '/www'        
]);
$http->on('request', function ($request, $response) {
    $response->end("<h1>Hello Swoole. #".rand(1000, 9999)."</h1><h1>Haaa. #".json_encode($request->get)."</h1>");
});
$http->start();
?>
